﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarLoanSystem
{
    public partial class panelReportHead : UserControl
    {
        public panelReportHead()
        {
            InitializeComponent();
            this.panelReportLoan.Hide();
            this.panelReportPayment.Hide();
        }

        public void InitBtn() 
        {
            this.btnHistoryLoan.Show();
            this.btnHistoryPayment.Show();
        }

        public void InitPanelReport() 
        {
            this.panelReportLoan.Hide();
            this.panelReportPayment.Hide();
        }

        private void btnHistoryLoan_Click(object sender, EventArgs e)
        {
            this.panelReportLoan.Show();
            this.panelReportPayment.Hide();
            this.btnHistoryLoan.Hide();
            this.btnHistoryPayment.Hide();
        }

        private void btnHistoryPayment_Click(object sender, EventArgs e)
        {
            this.panelReportLoan.Hide();
            this.panelReportPayment.Show();
            this.btnHistoryLoan.Hide();
            this.btnHistoryPayment.Hide();
        }
    }
}
